<!DOCTYPE html>
<html lang="en">
<head>
    <title>电子发票下载</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <style>
        /* Reset some basic elements */
        body, h1, p, ul, li {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }

        /* Overall page styling */
        body {
            background-color: #f4f4f4;
            color: #333;
            line-height: 1.6;
            padding: 20px;
        }

        .main {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            margin: 20px auto;
            padding: 20px;
        }

        h1 {
            font-size: 24px;
            color: #333333;
            margin-bottom: 20px;
        }

        p {
            font-size: 16px;
            color: #666666;
            margin-bottom: 20px;
        }

        a {
            color: #007BFF;
            text-decoration: none;
            word-break: break-all;
        }

        a:hover {
            text-decoration: underline;
        }

        .invoice-info {
            background-color: #f9f9f9;
            border-radius: 5px;
            padding: 15px;
            margin-top: 20px;
        }

        ul {
            list-style-type: none;
            padding-left: 0;
        }

        li {
            font-size: 14px; /* Smaller font size for <li> */
            color: #333;
            padding: 4px 0; /* Tighter spacing */
            line-height: 1.4; /* Compact line spacing */
        }

        /* Differentiating colors for content before and after colon */
        li::before {
            content: attr(data-label);
            color: #555;
            font-weight: bold;
        }

        li span {
            color: #999;
            margin-left: 5px;
        }

        .footer {
            margin-top: 30px;
            text-align: center;
            font-size: 14px;
            color: #999999;
        }
    </style>
</head>
<body>
<div class="main">
    <h1>尊敬的 [[${invoice.purchaser}]] 您好:</h1>
    <p>
        [[${invoice.issuer}]] 为您开具了电子发票
    </p>
    <div>
        <p>点击链接查看，如点击无效可复制到浏览器查看</p>
        <p><a th:href="${invoice.downloadLink}">[[${invoice.downloadLink}]]</a></p>
    </div>

    <div class="invoice-info">
        <ul>
            <li data-label="发票金额:"><span>[[${invoice.amount}]]</span></li>
            <li data-label="开票日期:"><span>[[${invoice.issueDate}]]</span></li>
            <li data-label="发票抬头:"><span>[[${invoice.purchaser}]]</span></li>
            <li data-label="发票号码:"><span>[[${invoice.number}]]</span></li>
        </ul>
    </div>
</div>
<div class="footer">
    <p>系统邮件回复无效。</p>
</div>
</body>
</html>
